package com.xwaiy.xwaiyrpc.loadbalancer;

import com.xwaiy.xwaiyrpc.model.ServiceMetaInfo;

import java.util.List;
import java.util.Map;

/**
 * 负载均衡器
 * @author Xwaiy
 */
public interface LoadBalancer {

    /**
     * 选择服务调用
     * @param params
     * @param list
     * @return
     */
    ServiceMetaInfo select(Map<String,Object> params, List<ServiceMetaInfo> list);
}
